package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.Coursecollection;
import com.czh.springboot04.entity.Coursemark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CoursecollectionMapper {

    List<Coursecollection> selectCoursemark(@Param("nickName") String nickName, @Param("courseName") String courseName);

    //根据用户id和课程id查询
    Coursecollection selectCoursemarkByUserIdAndKcid(@Param("userid") int userId, @Param("kcid") int kcid);

   //添加(用户id和课程id)
    int insertCoursecollection(@Param("userid") int userid,@Param("kcid")int kcid);
    //删除
    int deleteCoursecollection(@Param("userid")int userid,@Param("kcid")  int kcid);
}
